package model.po;

public class Spec {
    private Integer id;
    private Integer goodsId;
    private String name;
    private Integer number;
    private Double price;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Spec() {}

    public Spec(Integer goodsId, String name) {
        this.goodsId = goodsId;
        this.name = name;
    }

    public Spec(Integer goodsId, String name, Integer number, Double price) {
        this.goodsId = goodsId;
        this.name = name;
        this.number = number;
        this.price = price;
    }

    public Spec(String name, Integer id, Integer number, Double price) {
        this.id = id;
        this.name = name;
        this.number = number;
        this.price = price;
    }

    @Override
    public String toString() {
        return "Spec{" +
                "id=" + id +
                ", goodId=" + goodsId +
                ", name='" + name + '\'' +
                ", number=" + number +
                ", price=" + price +
                '}';
    }
}
